/*
 * SonarQube
 * Copyright (C) 2009-2021 SonarSource SA
 * mailto:info AT sonarsource DOT com
 *
 * This program is free software; you can redistribute it and/or
 * modify it under the terms of the GNU Lesser General Public
 * License as published by the Free Software Foundation; either
 * version 3 of the License, or (at your option) any later version.
 *
 * This program is distributed in the hope that it will be useful,
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
 * Lesser General Public License for more details.
 *
 * You should have received a copy of the GNU Lesser General Public License
 * along with this program; if not, write to the Free Software Foundation,
 * Inc., 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301, USA.
 */
.project-activity-page {
  min-height: 600px;
  height: calc(100vh - 250px);
}

.project-activity-page-side-outer {
  position: relative;
  width: 400px;
  margin-bottom: 0;
  display: flex;
  flex-direction: row;
  align-items: stretch;
}

.project-activity-layout-page-main {
  flex-grow: 1;
  min-width: 640px;
  padding-left: 20px;
  display: flex;
}

.project-activity-layout-page-main-inner {
  min-width: 640px;
  max-width: 880px;
  margin-bottom: 0px;
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: stretch;
}

.project-activity-versions-list {
  max-width: 400px;
  box-sizing: border-box;
  overflow: auto;
  flex-grow: 1;
  flex-shrink: 0;
  padding: calc(2 * var(--gridSize)) calc(2 * var(--gridSize)) calc(2 * var(--gridSize))
    calc(1.5 * var(--gridSize));
}

.project-activity-day {
  margin-top: 8px;
  margin-bottom: 24px;
}

.project-activity-day:last-child {
  margin-bottom: 10px;
}

.project-activity-date {
  margin-bottom: calc(2 * var(--gridSize));
  font-size: var(--bigFontSize);
  font-weight: bold;
}

.project-activity-analysis {
  position: relative;
  min-height: var(--smallControlHeight);
  padding: calc(2 * var(--gridSize));
  cursor: pointer;
}

.project-activity-analysis.selected {
  cursor: default;
  background-color: var(--rowHoverHighlight);
}

.project-activity-analysis:focus {
  outline: none;
}

.project-activity-analysis:hover {
  background-color: var(--rowHoverHighlight);
}

.project-activity-analysis + .project-activity-analysis {
  border-top: none;
}

.project-activity-analysis-actions {
  height: var(--smallControlHeight);
}

.project-activity-time {
  height: var(--smallControlHeight);
  line-height: var(--smallControlHeight);
}

.project-activity-event {
  line-height: var(--smallControlHeight);
  text-indent: -20px;
  padding-left: 20px;
}

.project-activity-event * {
  text-indent: 0;
}

.project-activity-event + .project-activity-event {
  margin-top: var(--gridSize);
}

.project-activity-event-inner-more-link {
  line-height: 16px;
}

.project-activity-event-icon.VERSION {
  color: var(--blue);
}

.project-activity-event-icon.QUALITY_GATE {
  color: var(--purple);
}

.project-activity-event-icon.QUALITY_PROFILE {
  color: #cccccc;
}

.project-activity-event-icon.DEFINITION_CHANGE {
  color: #33a759;
}

.project-activity-event-icon.OTHER {
  color: #442d1b;
}

.project-activity-version-badge {
  margin-left: calc(-1.5 * var(--gridSize));
  padding-top: var(--gridSize);
  padding-bottom: var(--gridSize);
  background-color: white;
}

.project-activity-version-badge.sticky,
.project-activity-version-badge.first {
  position: absolute;
  top: 0;
  left: calc(1.5 * var(--gridSize));
  right: calc(2 * var(--gridSize));
  padding-top: calc(3 * var(--gridSize));
  z-index: var(--belowNormalZIndex);
}

.project-activity-version-badge.sticky + .project-activity-days-list {
  padding-top: 36px;
}

.project-activity-version-badge .analysis-version {
  max-width: 385px;
  border-radius: 0 2px 2px 0;
  overflow: hidden;
  text-overflow: ellipsis;
}

.Select .project-activity-event-icon,
.activity-graph-tooltip-line .project-activity-event-icon {
  margin-top: 1px;
}

.baseline-marker {
  position: absolute;
  top: -10px;
  left: 0;
  right: 0;
  display: flex;
  flex-direction: row;
  align-items: center;
}

.baseline-marker > .wedge {
  border: 10px solid transparent;
  border-left-color: var(--leakSecondaryColor);
}

.baseline-marker > hr {
  border: none;
  margin: 0 0 0 -11px;
  background-color: var(--leakSecondaryColor);
  height: 2px;
  flex: 1 0 auto;
}

.baseline-marker > .label {
  background-color: var(--leakPrimaryColor);
  border: 1px solid var(--leakSecondaryColor);
  padding: 2px 8px;
  font-size: var(--verySmallFontSize);
}
